package io.renren.softpark.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.softpark.dto.TimeDto;
import io.renren.softpark.entity.SoftwareEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 
 * 
 * @author Cui
 * @email ${email}
 * @date 2020-08-14 09:24:18
 */
@Mapper
@Repository
public interface SoftwareDao extends BaseMapper<SoftwareEntity> {

    SoftwareEntity selectBySoftId(String softId);

    @Select("SELECT\n" +
            "\tCREATE_TIME,\n" +
            "\tUPDATE_TIME\n" +
            "FROM\n" +
            "\tsoftware;")
    List<TimeDto> getTime();

}
